{foreach from=$params item=item }
	<tr>
		<td class="cntForm-td-title"><div>{$item.name|escape}{if $item.point} ({$item.point|escape}){/if}:</div></td>
		<td class="cntForm-td-object">
			{if $item.type == 'string'}
				<input type="text" class="text" name="params[{$item.id}]" value="{$item.value|escape}" maxlength="255" />
			{elseif $item.type == 'list'}
				<select name="params[{$item.id}]" class="select">
					{foreach from=$item.items item=option}
						<option value="{$option|escape}" {if $option == $item.value}selected{/if}/> {$option|escape}
					{/foreach}
				</select>
			{elseif $item.type == 'flag'}
				<select name="params[{$item.id}]" class="select">
					<option value="нет" {if 'нет' == $item.value}selected{/if}/> Нет
					<option value="да" {if 'да' == $item.value}selected{/if}/> Да
				</select>
			{else}
				undefined type {$item.type|escape}
			{/if}
			{if $item.description}<div class="light tiny">{$item.description|escape}</div>{/if}
		</td>
		<td class="cntForm-td-error buggy_obj buggy_obj__{$item.id}"></td>
	</tr>
{/foreach}